import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)


const location = {
  state:{
    longitude: null,
    latitude: null,
  },
  mutations:{
    setLocation(state, data){
      if(data.longitude)
      state.longitude = data.longitude

      if(data.latitude)
      state.latitude = data.latitude
    }
  },
  actions:{

  },
  modules:{

  }
}


export default new Vuex.Store({
  state: {
    showTabbar: true,
  },
  getters: {
  },
  mutations: {
    setShowTabbar(state, val){
      state.showTabbar = val
    }
  },
  actions: {
  },
  modules: {
    location
  }
})
